﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mini_Project
{
    class user
    {
        public double id;
        public double[] profile;       //normalized => all cells add up to 1

        public user(double i)
        {
            id = i;
            profile = new double[19];
        }

        public void setProfile(double[] p){
            double max = 0;
            int index = 0;

            profile=p;
            for (int i = 0; i < 19; i++)
            {
                if (profile[i] > max)
                {
                    max = profile[i];
                    index = i;
                }
            }
            profile[index] += .5;
        }

        public void printProfile()
        {
            Console.WriteLine("profile for user: " + id);
            for (int i = 0; i < 19; i++)
                Console.Write(profile[i] + " ");
            Console.WriteLine();
        }

    }
}
